package com.ktwlsoft.fundmanage.domain.entity.pictureconfig;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 要件详情表
 *
 * @author Name on 2019/10/8 12:25
 * @version 1.0
 */
@Entity
@Table(name = "sign_credential_info")
@Getter
@Setter
public class SignCredentialInfo implements Serializable {

    /**成像文件id*/
    @Id
    @ApiModelProperty(value = "成像文件id")
    @Column(name = "credential_info_id",columnDefinition = "VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '成像文件id'")
    private String credentialInfoId;

    /**成像表id*/
    @ApiModelProperty(value = "成像表id")
    @Column(name = "credential_id",columnDefinition = "VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '成像表id'")
    private String credentialId;

    /**页*/
    @ApiModelProperty(value = "页")
    @Column(name = "page",columnDefinition = "INT(11) NULL DEFAULT NULL COMMENT '页'")
    private Integer page;

    /**文件名称*/
    @ApiModelProperty(value = "文件名称")
    @Column(name = "file_name",columnDefinition = "VARCHAR(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称'")
    private String fileName;

    /**文件后缀*/
    @ApiModelProperty(value = "文件后缀")
    @Column(name = "file_extension",columnDefinition = "VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件后缀'")
    private String fileExtension;

    /**文件大小*/
    @ApiModelProperty(value = "文件大小")
    @Column(name = "file_size",columnDefinition = "VARCHAR(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件大小'")
    private String fileSize;

    /**文件地址*/
    @ApiModelProperty(value = "文件地址")
    @Column(name = "file_path",columnDefinition = "VARCHAR(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件地址'")
    private String filePath;

    /**业务id*/
    @ApiModelProperty(value = "业务id")
    @Column(name = "busi_id",columnDefinition = "VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '业务id'")
    private String busiId;

    /**外网操作类型，0只读、1可删除，默认为1*/
    @ApiModelProperty(value = "外网操作类型，0只读、1可删除，默认为1")
    @Column(name = "net_operate_type",columnDefinition = "INT(11) NULL DEFAULT 1 COMMENT '外网操作类型，0只读、1可删除，默认为1'")
    private Integer netOperateType;

    /**内网操作类型，0只读、1可删除，默认为1*/
    @ApiModelProperty(value = "内网操作类型，0只读、1可删除，默认为1")
    @Column(name = "inter_operate_type",columnDefinition = "INT(11) NULL DEFAULT 1 COMMENT '内网操作类型，0只读、1可删除，默认为1'")
    private Integer interOperateType;

    /**创建时间*/
    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time",columnDefinition = "DATETIME(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间'")
    private Date createTime;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    @Column(name = "create_user",columnDefinition = "VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人'")
    private String createUser;

    /**更新时间*/
    @ApiModelProperty(value = "更新时间")
    @Column(name = "modify_time",columnDefinition = "DATETIME(0) NULL DEFAULT NULL COMMENT '更新时间'")
    private Date modifyTime;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    @Column(name = "modify_user",columnDefinition = "VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人'")
    private String modifyUser;

    /**删除状态:0-未删除,1-已删除,默认0*/
    @ApiModelProperty(value = "删除状态:0-未删除,1-已删除,默认0")
    @Column(name = "delete_mark",columnDefinition = "SMALLINT(1) NOT NULL DEFAULT 0 COMMENT '删除状态:0-未删除,1-已删除,默认0'")
    private Integer deleteMark;

    /**备注*/
    @ApiModelProperty(value = "备注")
    @Column(name = "remark",columnDefinition = "VARCHAR(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注'")
    private String remark;

    /**关键字*/
    @ApiModelProperty(value = "关键字")
    @Transient
    private String keyWords;
}